package com.xhorse.lockplatform.dao.mapper;

import com.xhorse.lockplatform.comm.persist.BaseMapper;
import com.xhorse.lockplatform.model.XhAppUpdateInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface XhAppUpdateInfoMapper extends BaseMapper<XhAppUpdateInfo> {

    List<Integer> getVersionList(@Param("builder") int builder, @Param("type") int type, @Param("languageId") int languageId);

    XhAppUpdateInfo getLatestVersionInfo(@Param("builder") int builder, @Param("type") int type, @Param("languageId") int languageId);

    String selectMaxVersionByType(int type);

    List<XhAppUpdateInfo> selectByType(int type);
}